package cj.web.marriage.domain;
/*
 *  
 *  
*/
import java.io.Serializable;

import cj.web.admin.domain.DataTablePage;

/**
 * 关注
 */
public class Follow extends DataTablePage implements Serializable {

    protected Integer id;
	protected Integer userId;
	protected Integer objectUserId;
	protected String createAt;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getUserId() {
		return userId;
	}
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	public Integer getObjectUserId() {
		return objectUserId;
	}
	public void setObjectUserId(Integer objectUserId) {
		this.objectUserId = objectUserId;
	}
	public String getCreateAt() {
		return createAt;
	}
	public void setCreateAt(String createAt) {
		this.createAt = createAt;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = super.hashCode();
		result = prime * result
				+ ((createAt == null) ? 0 : createAt.hashCode());
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		result = prime * result
				+ ((objectUserId == null) ? 0 : objectUserId.hashCode());
		result = prime * result + ((userId == null) ? 0 : userId.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (!super.equals(obj))
			return false;
		if (getClass() != obj.getClass())
			return false;
		Follow other = (Follow) obj;
		if (createAt == null) {
			if (other.createAt != null)
				return false;
		} else if (!createAt.equals(other.createAt))
			return false;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		if (objectUserId == null) {
			if (other.objectUserId != null)
				return false;
		} else if (!objectUserId.equals(other.objectUserId))
			return false;
		if (userId == null) {
			if (other.userId != null)
				return false;
		} else if (!userId.equals(other.userId))
			return false;
		return true;
	}
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("Follow [id=").append(id).append(", userId=")
				.append(userId).append(", objectUserId=").append(objectUserId)
				.append(", createAt=").append(createAt).append("]");
		return builder.toString();
	}
}